package com.qdrtme.landemo.newcms;

import android.content.Context;

import com.qdrtme.landemo.BaseApi;

import org.json.JSONException;

import java.util.HashMap;

/**
 * @Created by taylor on 12/14/17.
 * @class 新增爆料
 */

public class AddTipoffApi extends BaseApi {

    private String userId;
    private String userPic;
    private String userName;
    private String content;
    private String picUrl;
    private String location;
    private String organizationCompanyId;
    private String type;


    public AddTipoffApi(Context c) {
        super(c);
    }

    @Override
    protected String getURL() {
        return BaseApi.ADD_TIPOFF;
    }

    @Override
    protected void getParams(HashMap<String, Object> params) {
        super.getParams(params);
        params.put("userId", userId);
        params.put("userPic", userPic);
        params.put("userName", userName);
        params.put("content", content);
        params.put("picUrl", picUrl);
        params.put("location", location);
        params.put("organizationCompanyId", organizationCompanyId);
        params.put("type", type);
    }

    @Override
    protected boolean analysisOutput(String result) throws JSONException {
        return true;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public void setOrganizationCompanyId(String organizationCompanyId) {
        this.organizationCompanyId = organizationCompanyId;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public void setType(String type) {
        this.type = type;
    }
}
